package ch.fusun.baron.treasury.api;

import ch.fusun.baron.data.DataProvider;

/**
 * Provides methods to manipulate treasuries
 */
public interface TreasuryService extends DataProvider {

	/**
	 * @param owner
	 *            The owner
	 * @param money
	 *            The money
	 */
	void setMoney(Object owner, int money);

	/**
	 * @param owner
	 *            The owner
	 * @return The player's fortune
	 */
	int getMoney(Object owner);

	/**
	 * @param owner
	 *            The owner
	 * @param amount
	 *            The money to subtract
	 */
	void removeMoney(Object owner, int amount);

	/**
	 * @param owner
	 *            The owner
	 * @param amount
	 *            The money to add
	 */
	void addMoney(Object owner, int amount);
}
